/**
 * 
 */
package com.malware.detection;

import java.util.ArrayList;

import android.app.ListActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;

/**
 * @author poornima
 *
 */
public class AfterCall extends ListActivity {

	private static final String TAG = "PoornimaMalware";
	ArrayList<String> afterResult;

	/* (non-Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// TODO Auto-generated method stub
		afterResult = new ArrayList<String>();


		Bundle bundle = this.getIntent().getExtras();
		if(bundle != null){
			 
			if(bundle.getStringArrayList("afterList").isEmpty())
				afterResult.add("No malicious apps found.");
			else
				afterResult = bundle.getStringArrayList("afterList");
			
			afterResult.add(("System Memory after call: " + (Long)bundle.getLong("memoryAfterCall")).toString());
	
			 
			setListAdapter(new ArrayAdapter<String>(this, R.layout.action_list,afterResult));
			ListView listView = getListView();
			listView.setTextFilterEnabled(true);
		}

		 

	}

}
